<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>chimera.util.simbad</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="chimera-module.html">Package&nbsp;chimera</a> ::
        <a href="chimera.util-module.html">Package&nbsp;util</a> ::
        Module&nbsp;simbad
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="chimera.util.simbad-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="chimera.util.simbad-module.html">Module chimera.util.simbad</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#! /usr/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># -*- coding: iso-8859-1 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"># chimera - observatory automation system</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Copyright (C) 2006-2007  P. Henrique Silva &lt;henrique@astro.ufsc.br&gt;</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"># This program is free software; you can redistribute it and/or</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># modify it under the terms of the GNU General Public License</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># as published by the Free Software Foundation; either version 2</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># of the License, or (at your option) any later version.</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment"># This program is distributed in the hope that it will be useful,</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># GNU General Public License for more details.</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-comment"># You should have received a copy of the GNU General Public License</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># along with this program; if not, write to the Free Software</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package chimera=chimera-module.html"><a title="chimera" class="py-name" href="#" onclick="return doclink('link-0', 'chimera', 'link-0');">chimera</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module chimera.controllers.imageserver.util=chimera.controllers.imageserver.util-module.html,Module chimera.core.util=chimera.core.util-module.html,Package chimera.util=chimera.util-module.html"><a title="chimera.controllers.imageserver.util
chimera.core.util
chimera.util" class="py-name" href="#" onclick="return doclink('link-1', 'util', 'link-1');">util</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Variable chimera.controllers.extinction.ExtinctionData.position=chimera.controllers.extinction.ExtinctionData-class.html#position,Module chimera.util.position=chimera.util.position-module.html"><a title="chimera.controllers.extinction.ExtinctionData.position
chimera.util.position" class="py-name" href="#" onclick="return doclink('link-2', 'position', 'link-2');">position</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Class chimera.util.position.Position=chimera.util.position.Position-class.html"><a title="chimera.util.position.Position" class="py-name" href="#" onclick="return doclink('link-3', 'Position', 'link-3');">Position</a></tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-4" class="py-name"><a title="chimera" class="py-name" href="#" onclick="return doclink('link-4', 'chimera', 'link-0');">chimera</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="chimera.controllers.imageserver.util
chimera.core.util
chimera.util" class="py-name" href="#" onclick="return doclink('link-5', 'util', 'link-1');">util</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Package chimera.util.etree=chimera.util.etree-module.html"><a title="chimera.util.etree" class="py-name" href="#" onclick="return doclink('link-6', 'etree', 'link-6');">etree</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module chimera.util.etree.ElementTree=chimera.util.etree.ElementTree-module.html,Class chimera.util.etree.ElementTree.ElementTree=chimera.util.etree.ElementTree.ElementTree-class.html"><a title="chimera.util.etree.ElementTree
chimera.util.etree.ElementTree.ElementTree" class="py-name" href="#" onclick="return doclink('link-7', 'ElementTree', 'link-7');">ElementTree</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">ET</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-8" class="py-name"><a title="chimera" class="py-name" href="#" onclick="return doclink('link-8', 'chimera', 'link-0');">chimera</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Package chimera.core=chimera.core-module.html"><a title="chimera.core" class="py-name" href="#" onclick="return doclink('link-9', 'core', 'link-9');">core</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Module chimera.core.exceptions=chimera.core.exceptions-module.html"><a title="chimera.core.exceptions" class="py-name" href="#" onclick="return doclink('link-10', 'exceptions', 'link-10');">exceptions</a></tt> <tt class="py-keyword">import</tt> <tt id="link-11" class="py-name" targets="Class chimera.core.exceptions.ObjectNotFoundException=chimera.core.exceptions.ObjectNotFoundException-class.html"><a title="chimera.core.exceptions.ObjectNotFoundException" class="py-name" href="#" onclick="return doclink('link-11', 'ObjectNotFoundException', 'link-11');">ObjectNotFoundException</a></tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-12" class="py-name"><a title="chimera" class="py-name" href="#" onclick="return doclink('link-12', 'chimera', 'link-0');">chimera</a></tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="chimera.core" class="py-name" href="#" onclick="return doclink('link-13', 'core', 'link-9');">core</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method chimera.controllers.autofocus.FocusFit.log()=chimera.controllers.autofocus.FocusFit-class.html#log,Variable chimera.controllers.imageserver.imagerequest.log=chimera.controllers.imageserver.imagerequest-module.html#log,Variable chimera.controllers.scheduler.machine.log=chimera.controllers.scheduler.machine-module.html#log,Variable chimera.controllers.scheduler.sequential.log=chimera.controllers.scheduler.sequential-module.html#log,Variable chimera.controllers.site.main.log=chimera.controllers.site.main-module.html#log,Variable chimera.core.config.log=chimera.core.config-module.html#log,Variable chimera.core.eventsproxy.log=chimera.core.eventsproxy-module.html#log,Variable chimera.core.location.log=chimera.core.location-module.html#log,Variable chimera.core.lockwrapper.log=chimera.core.lockwrapper-module.html#log,Module chimera.core.log=chimera.core.log-module.html,Variable chimera.core.manager.log=chimera.core.manager-module.html#log,Variable chimera.core.methodwrapper.log=chimera.core.methodwrapper-module.html#log,Variable chimera.core.proxy.log=chimera.core.proxy-module.html#log,Variable chimera.core.systemconfig.log=chimera.core.systemconfig-module.html#log,Variable chimera.core.tests.test_log.log=chimera.core.tests.test_log-module.html#log,Variable chimera.core.threads.log=chimera.core.threads-module.html#log,Variable chimera.drivers.sbig.sbigdrv.log=chimera.drivers.sbig.sbigdrv-module.html#log,Variable chimera.drivers.tests.test_meade.log=chimera.drivers.tests.test_meade-module.html#log,Variable chimera.drivers.theskytelescope.log=chimera.drivers.theskytelescope-module.html#log,Variable chimera.instruments.tests.test_camera.log=chimera.instruments.tests.test_camera-module.html#log,Variable chimera.util.astrometrynet.log=chimera.util.astrometrynet-module.html#log,Variable chimera.util.image.log=chimera.util.image-module.html#log"><a title="chimera.controllers.autofocus.FocusFit.log
chimera.controllers.imageserver.imagerequest.log
chimera.controllers.scheduler.machine.log
chimera.controllers.scheduler.sequential.log
chimera.controllers.site.main.log
chimera.core.config.log
chimera.core.eventsproxy.log
chimera.core.location.log
chimera.core.lockwrapper.log
chimera.core.log
chimera.core.manager.log
chimera.core.methodwrapper.log
chimera.core.proxy.log
chimera.core.systemconfig.log
chimera.core.tests.test_log.log
chimera.core.threads.log
chimera.drivers.sbig.sbigdrv.log
chimera.drivers.tests.test_meade.log
chimera.drivers.theskytelescope.log
chimera.instruments.tests.test_camera.log
chimera.util.astrometrynet.log
chimera.util.image.log" class="py-name" href="#" onclick="return doclink('link-14', 'log', 'link-14');">log</a></tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-comment">#import suds</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#suds.logger('suds').setLevel(logging.DEBUG)</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">suds</tt><tt class="py-op">.</tt><tt class="py-name">serviceproxy</tt> <tt class="py-keyword">import</tt> <tt class="py-name">ServiceProxy</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"> </tt>
<a name="Simbad"></a><div id="Simbad-def"><a name="L34"></a><tt class="py-lineno">34</tt> <a class="py-toggle" href="#" id="Simbad-toggle" onclick="return toggle('Simbad');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="chimera.util.simbad.Simbad-class.html">Simbad</a> <tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Simbad-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Simbad-expanded"><a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">    <tt id="link-15" class="py-name" targets="Variable chimera.util.simbad.Simbad.WSDL=chimera.util.simbad.Simbad-class.html#WSDL"><a title="chimera.util.simbad.Simbad.WSDL" class="py-name" href="#" onclick="return doclink('link-15', 'WSDL', 'link-15');">WSDL</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'http://cdsws.u-strasbg.fr/axis/services/Sesame?wsdl'</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">     </tt>
<a name="Simbad.__init__"></a><div id="Simbad.__init__-def"><a name="L38"></a><tt class="py-lineno">38</tt> <a class="py-toggle" href="#" id="Simbad.__init__-toggle" onclick="return toggle('Simbad.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.simbad.Simbad-class.html#__init__">__init__</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Simbad.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Simbad.__init__-expanded"><a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Module chimera.core.proxy=chimera.core.proxy-module.html"><a title="chimera.core.proxy" class="py-name" href="#" onclick="return doclink('link-16', 'proxy', 'link-16');">proxy</a></tt> <tt class="py-op">=</tt> <tt class="py-name">ServiceProxy</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name" targets="Class chimera.util.simbad.Simbad=chimera.util.simbad.Simbad-class.html"><a title="chimera.util.simbad.Simbad" class="py-name" href="#" onclick="return doclink('link-17', 'Simbad', 'link-17');">Simbad</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="chimera.util.simbad.Simbad.WSDL" class="py-name" href="#" onclick="return doclink('link-18', 'WSDL', 'link-15');">WSDL</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"> </tt>
<a name="Simbad.lookup"></a><div id="Simbad.lookup-def"><a name="L41"></a><tt class="py-lineno">41</tt> <a class="py-toggle" href="#" id="Simbad.lookup-toggle" onclick="return toggle('Simbad.lookup');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.simbad.Simbad-class.html#lookup">lookup</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Simbad.lookup-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Simbad.lookup-expanded"><a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">        <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="chimera.core.proxy" class="py-name" href="#" onclick="return doclink('link-19', 'proxy', 'link-16');">proxy</a></tt><tt class="py-op">.</tt><tt class="py-name">sesame</tt> <tt class="py-op">(</tt><tt id="link-20" class="py-name" targets="Method chimera.controllers.console.command.Command.name()=chimera.controllers.console.command.Command-class.html#name,Variable chimera.controllers.scheduler.model.Setting.name=chimera.controllers.scheduler.model.Setting-class.html#name,Variable chimera.core.cli.Option.name=chimera.core.cli.Option-class.html#name,Variable chimera.core.location.Location.name=chimera.core.location.Location-class.html#name"><a title="chimera.controllers.console.command.Command.name
chimera.controllers.scheduler.model.Setting.name
chimera.core.cli.Option.name
chimera.core.location.Location.name" class="py-name" href="#" onclick="return doclink('link-20', 'name', 'link-20');">name</a></tt><tt class="py-op">,</tt> <tt class="py-string">'x'</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">        <tt id="link-21" class="py-name" targets="Variable chimera.core.cli.Option.target=chimera.core.cli.Option-class.html#target"><a title="chimera.core.cli.Option.target" class="py-name" href="#" onclick="return doclink('link-21', 'target', 'link-21');">target</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Method chimera.util.simbad.Simbad._parseSesame()=chimera.util.simbad.Simbad-class.html#_parseSesame"><a title="chimera.util.simbad.Simbad._parseSesame" class="py-name" href="#" onclick="return doclink('link-22', '_parseSesame', 'link-22');">_parseSesame</a></tt><tt class="py-op">(</tt><tt class="py-name">res</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-23" class="py-name"><a title="chimera.core.cli.Option.target" class="py-name" href="#" onclick="return doclink('link-23', 'target', 'link-21');">target</a></tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-24" class="py-name"><a title="chimera.core.exceptions.ObjectNotFoundException" class="py-name" href="#" onclick="return doclink('link-24', 'ObjectNotFoundException', 'link-11');">ObjectNotFoundException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cound't found %s on SIMBAD"</tt> <tt class="py-op">%</tt> <tt id="link-25" class="py-name"><a title="chimera.controllers.console.command.Command.name
chimera.controllers.scheduler.model.Setting.name
chimera.core.cli.Option.name
chimera.core.location.Location.name" class="py-name" href="#" onclick="return doclink('link-25', 'name', 'link-20');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">         </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-26" class="py-name"><a title="chimera.core.cli.Option.target" class="py-name" href="#" onclick="return doclink('link-26', 'target', 'link-21');">target</a></tt> </tt>
</div><a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"> </tt>
<a name="Simbad._parseSesame"></a><div id="Simbad._parseSesame-def"><a name="L50"></a><tt class="py-lineno">50</tt> <a class="py-toggle" href="#" id="Simbad._parseSesame-toggle" onclick="return toggle('Simbad._parseSesame');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.simbad.Simbad-class.html#_parseSesame">_parseSesame</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">xml</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Simbad._parseSesame-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Simbad._parseSesame-expanded"><a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">         </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">        <tt class="py-name">sesame</tt> <tt class="py-op">=</tt> <tt class="py-name">ET</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method chimera.util.etree.ElementTree.DefaultParserAPI.fromstring()=chimera.util.etree.ElementTree.DefaultParserAPI-class.html#fromstring"><a title="chimera.util.etree.ElementTree.DefaultParserAPI.fromstring" class="py-name" href="#" onclick="return doclink('link-27', 'fromstring', 'link-27');">fromstring</a></tt><tt class="py-op">(</tt><tt class="py-name">xml</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">"&amp;"</tt><tt class="py-op">,</tt> <tt class="py-string">"&amp;amp;"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">         </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">resolver</tt> <tt class="py-keyword">in</tt> <tt class="py-name">sesame</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Method chimera.util.etree.ElementPath.Path.findall()=chimera.util.etree.ElementPath.Path-class.html#findall,Function chimera.util.etree.ElementPath.findall()=chimera.util.etree.ElementPath-module.html#findall,Method chimera.util.etree.ElementTree.ElementTree.findall()=chimera.util.etree.ElementTree.ElementTree-class.html#findall,Method chimera.util.etree.ElementTree._ElementInterface.findall()=chimera.util.etree.ElementTree._ElementInterface-class.html#findall,Method chimera.util.etree.ElementTree._SimpleElementPath.findall()=chimera.util.etree.ElementTree._SimpleElementPath-class.html#findall"><a title="chimera.util.etree.ElementPath.Path.findall
chimera.util.etree.ElementPath.findall
chimera.util.etree.ElementTree.ElementTree.findall
chimera.util.etree.ElementTree._ElementInterface.findall
chimera.util.etree.ElementTree._SimpleElementPath.findall" class="py-name" href="#" onclick="return doclink('link-28', 'findall', 'link-28');">findall</a></tt><tt class="py-op">(</tt><tt class="py-string">"Resolver"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">            <tt class="py-name">jpos</tt>  <tt class="py-op">=</tt> <tt class="py-name">resolver</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method chimera.util.catalog.Catalog.find()=chimera.util.catalog.Catalog-class.html#find,Method chimera.util.catalogs.landolt.Landolt.find()=chimera.util.catalogs.landolt.Landolt-class.html#find,Method chimera.util.catalogs.ppm.PPM.find()=chimera.util.catalogs.ppm.PPM-class.html#find,Method chimera.util.catalogs.ucac2.UCAC2.find()=chimera.util.catalogs.ucac2.UCAC2-class.html#find,Method chimera.util.etree.ElementPath.Path.find()=chimera.util.etree.ElementPath.Path-class.html#find,Function chimera.util.etree.ElementPath.find()=chimera.util.etree.ElementPath-module.html#find,Method chimera.util.etree.ElementTree.ElementTree.find()=chimera.util.etree.ElementTree.ElementTree-class.html#find,Method chimera.util.etree.ElementTree._ElementInterface.find()=chimera.util.etree.ElementTree._ElementInterface-class.html#find,Method chimera.util.etree.ElementTree._SimpleElementPath.find()=chimera.util.etree.ElementTree._SimpleElementPath-class.html#find,Method chimera.util.vizquery.VizQuery.find()=chimera.util.vizquery.VizQuery-class.html#find"><a title="chimera.util.catalog.Catalog.find
chimera.util.catalogs.landolt.Landolt.find
chimera.util.catalogs.ppm.PPM.find
chimera.util.catalogs.ucac2.UCAC2.find
chimera.util.etree.ElementPath.Path.find
chimera.util.etree.ElementPath.find
chimera.util.etree.ElementTree.ElementTree.find
chimera.util.etree.ElementTree._ElementInterface.find
chimera.util.etree.ElementTree._SimpleElementPath.find
chimera.util.vizquery.VizQuery.find" class="py-name" href="#" onclick="return doclink('link-29', 'find', 'link-29');">find</a></tt><tt class="py-op">(</tt><tt class="py-string">"jpos"</tt><tt class="py-op">)</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">jpos</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line"> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-30" class="py-name"><a title="chimera.util.position.Position" class="py-name" href="#" onclick="return doclink('link-30', 'Position', 'link-3');">Position</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Static Method chimera.util.position.Position.fromRaDec()=chimera.util.position.Position-class.html#fromRaDec"><a title="chimera.util.position.Position.fromRaDec" class="py-name" href="#" onclick="return doclink('link-31', 'fromRaDec', 'link-31');">fromRaDec</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">jpos</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Variable chimera.util.etree.ElementTree._ElementInterface.text=chimera.util.etree.ElementTree._ElementInterface-class.html#text"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-32', 'text', 'link-32');">text</a></tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-33" class="py-name" targets="Variable chimera.core.threads.False=chimera.core.threads-module.html#False"><a title="chimera.core.threads.False" class="py-name" href="#" onclick="return doclink('link-33', 'False', 'link-33');">False</a></tt> </tt>
</div></div><a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">         </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt id="link-34" class="py-name" targets="Variable chimera.core.methodwrapper.MethodWrapper.__name__=chimera.core.methodwrapper.MethodWrapper-class.html#__name__"><a title="chimera.core.methodwrapper.MethodWrapper.__name__" class="py-name" href="#" onclick="return doclink('link-34', '__name__', 'link-34');">__name__</a></tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">    <tt id="link-35" class="py-name" targets="Variable chimera.drivers.sbig.tests.connect.s=chimera.drivers.sbig.tests.connect-module.html#s,Variable chimera.drivers.sbig.tests.grab.s=chimera.drivers.sbig.tests.grab-module.html#s"><a title="chimera.drivers.sbig.tests.connect.s
chimera.drivers.sbig.tests.grab.s" class="py-name" href="#" onclick="return doclink('link-35', 's', 'link-35');">s</a></tt> <tt class="py-op">=</tt> <tt id="link-36" class="py-name"><a title="chimera.util.simbad.Simbad" class="py-name" href="#" onclick="return doclink('link-36', 'Simbad', 'link-17');">Simbad</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">    <tt class="py-keyword">while</tt> <tt id="link-37" class="py-name" targets="Variable chimera.core.threads.True=chimera.core.threads-module.html#True"><a title="chimera.core.threads.True" class="py-name" href="#" onclick="return doclink('link-37', 'True', 'link-37');">True</a></tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">            <tt class="py-name">obj</tt> <tt class="py-op">=</tt> <tt class="py-name">raw_input</tt><tt class="py-op">(</tt><tt class="py-string">"Give me an object name: "</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt><tt class="py-op">:</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">                <tt class="py-name">o</tt> <tt class="py-op">=</tt> <tt id="link-38" class="py-name"><a title="chimera.drivers.sbig.tests.connect.s
chimera.drivers.sbig.tests.grab.s" class="py-name" href="#" onclick="return doclink('link-38', 's', 'link-35');">s</a></tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method chimera.util.simbad.Simbad.lookup()=chimera.util.simbad.Simbad-class.html#lookup"><a title="chimera.util.simbad.Simbad.lookup" class="py-name" href="#" onclick="return doclink('link-39', 'lookup', 'link-39');">lookup</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">o</tt><tt class="py-op">:</tt> <tt class="py-keyword">continue</tt> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Variable chimera.util.position.Position.ra=chimera.util.position.Position-class.html#ra"><a title="chimera.util.position.Position.ra" class="py-name" href="#" onclick="return doclink('link-40', 'ra', 'link-40');">ra</a></tt><tt class="py-op">,</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Variable chimera.util.position.Position.dec=chimera.util.position.Position-class.html#dec"><a title="chimera.util.position.Position.dec" class="py-name" href="#" onclick="return doclink('link-41', 'dec', 'link-41');">dec</a></tt> </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">KeyboardInterrupt</tt><tt class="py-op">,</tt> <tt class="py-name">EOFError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line">            <tt class="py-keyword">break</tt> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0beta1 on Sat Feb  7 18:37:02 2009</a>
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
